<script setup lang="ts">
import LoginDialog from '@/components/LoginDialog.vue'
import { useLoginStore } from '@/stores/useLoginStore'
import { ref } from 'vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const loginStore = useLoginStore()

const locale = ref(zhCn)
</script>

<template>
  <el-config-provider :locale="locale">
    <router-view class="min-h-screen"></router-view>
    <LoginDialog v-model="loginStore.showLoginDialog" />
  </el-config-provider>
</template>

<style>
#app {
  width: 100%;
  min-height: 100vh;
}
</style>
